package com.manage.function.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.manage.common.annotation.Excel;
import com.manage.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 资产申请对象 function_asset_application
 *
 * @author jinghj
 * @date 2025-03-09
 */
@ApiModel(value = "FunctionAssetApplication", description = "资产申请对象 function_asset_application 的详细信息")
public class FunctionAssetApplication extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     *
     */
    @ApiModelProperty(value = "主键ID")
    private Long id;

    /**
     * 员工ID，非空
     *
     */
    @ApiModelProperty(value = "员工ID，非空")
    @Excel(name = "员工ID，非空")
    private Long userId;

    /**
     * 部门ID，非空
     *
     */
    @ApiModelProperty(value = "部门ID，非空")
    @Excel(name = "部门ID，非空")
    private Long deptId;

    /**
     * 资产ID，非空
     *
     */
    @ApiModelProperty(value = "资产ID，非空")
    @Excel(name = "资产ID，非空")
    private Long assetId;

    /**
     * 申请数量，非空
     *
     */
    @ApiModelProperty(value = "申请数量，非空")
    @Excel(name = "申请数量，非空")
    private Long quantity;

    /**
     * 申请原因
     *
     */
    @ApiModelProperty(value = "申请原因")
    @Excel(name = "申请原因")
    private String reason;

    /**
     * 审批状态
     *
     */
    @ApiModelProperty(value = "审批状态")
    @Excel(name = "审批状态")
    private String status;

    /**
     * 审核进度
     *
     */
    @ApiModelProperty(value = "审核进度")
    @Excel(name = "审核进度")
    private String progress;

    /**
     * 创建时间，默认当前时间
     *
     */
    @ApiModelProperty(value = "创建时间，默认当前时间")
    private Date createdAt;

    /**
     * 更新时间，默认当前时间且自动更新
     *
     */
    @ApiModelProperty(value = "更新时间，默认当前时间且自动更新")
    private Date updatedAt;

    private String userName;

    private String deptName;
    private String assetName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getAssetName() {
        return assetName;
    }

    public void setAssetName(String assetName) {
        this.assetName = assetName;
    }

    /**
     * 设置 id 的值
     * @param id id 的值
     */
    public void setId(Long id)
    {
        this.id = id;
    }

    /**
     * 获取 id 的值
     * @return id 的值
     */
    public Long getId()
    {
        return id;
    }
    /**
     * 设置 userId 的值
     * @param userId userId 的值
     */
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    /**
     * 获取 userId 的值
     * @return userId 的值
     */
    public Long getUserId()
    {
        return userId;
    }
    /**
     * 设置 deptId 的值
     * @param deptId deptId 的值
     */
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    /**
     * 获取 deptId 的值
     * @return deptId 的值
     */
    public Long getDeptId()
    {
        return deptId;
    }
    /**
     * 设置 assetId 的值
     * @param assetId assetId 的值
     */
    public void setAssetId(Long assetId)
    {
        this.assetId = assetId;
    }

    /**
     * 获取 assetId 的值
     * @return assetId 的值
     */
    public Long getAssetId()
    {
        return assetId;
    }
    /**
     * 设置 quantity 的值
     * @param quantity quantity 的值
     */
    public void setQuantity(Long quantity)
    {
        this.quantity = quantity;
    }

    /**
     * 获取 quantity 的值
     * @return quantity 的值
     */
    public Long getQuantity()
    {
        return quantity;
    }
    /**
     * 设置 reason 的值
     * @param reason reason 的值
     */
    public void setReason(String reason)
    {
        this.reason = reason;
    }

    /**
     * 获取 reason 的值
     * @return reason 的值
     */
    public String getReason()
    {
        return reason;
    }
    /**
     * 设置 status 的值
     * @param status status 的值
     */
    public void setStatus(String status)
    {
        this.status = status;
    }

    /**
     * 获取 status 的值
     * @return status 的值
     */
    public String getStatus()
    {
        return status;
    }
    /**
     * 设置 progress 的值
     * @param progress progress 的值
     */
    public void setProgress(String progress)
    {
        this.progress = progress;
    }

    /**
     * 获取 progress 的值
     * @return progress 的值
     */
    public String getProgress()
    {
        return progress;
    }
    /**
     * 设置 createdAt 的值
     * @param createdAt createdAt 的值
     */
    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    /**
     * 获取 createdAt 的值
     * @return createdAt 的值
     */
    public Date getCreatedAt()
    {
        return createdAt;
    }
    /**
     * 设置 updatedAt 的值
     * @param updatedAt updatedAt 的值
     */
    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    /**
     * 获取 updatedAt 的值
     * @return updatedAt 的值
     */
    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("deptId", getDeptId())
                .append("assetId", getAssetId())
                .append("quantity", getQuantity())
                .append("reason", getReason())
                .append("status", getStatus())
                .append("progress", getProgress())
                .append("createdAt", getCreatedAt())
                .append("updatedAt", getUpdatedAt())
                .append("userName", getUserName())
                .append("deptName", getDeptName())
                .append("assetName", getAssetName())
                .toString();
    }
}
